package com.zhuang.controller;


import com.zhuang.pojo.User;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;

@RestController
public class TestController {
    @GetMapping("/test")
    public Object test(HttpServletResponse response) {
        HashMap<String, Object> map = new HashMap<>();
        User user = new User();
        user.setName("123");
        user.setId(123);
        map.put("aa", "aa");
        map.put("aa", "aa");
        map.put("user", user);
        return map;
    }

}
